
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>logback中文网|Introduction</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="logback中文网包含了logback中文文档，最新资讯，应用案例等。logback 继承自 log4j，它建立在有十年工业经验的日志系统之上。它比其它所有的日志系统更快并且更小，包含了许多独特并且有用的特性。"><meta name="keywords" content="logback中文文档, logback api文档, logback log4j,springboot logback,logback日志类型">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="01第一章logback介绍.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="01第一章logback介绍.html">
            
                <a href="01第一章logback介绍.html">
            
                    
                    第一章：logback 介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="02第二章架构.html">
            
                <a href="02第二章架构.html">
            
                    
                    第二章：架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="03第三章logback的配置.html">
            
                <a href="03第三章logback的配置.html">
            
                    
                    第三章：logback 的配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="04第四章Appenders.html">
            
                <a href="04第四章Appenders.html">
            
                    
                    第四章：Appenders
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="05第五章Encoder.html">
            
                <a href="05第五章Encoder.html">
            
                    
                    第五章：Encoder
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="06第六章Layouts.html">
            
                <a href="06第六章Layouts.html">
            
                    
                    第六章：Layouts
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="07第七章Filters.html">
            
                <a href="07第七章Filters.html">
            
                    
                    第七章：Filters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="08第八章MDC.html">
            
                <a href="08第八章MDC.html">
            
                    
                    第八章：MDC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="09第九章日志隔离.html">
            
                <a href="09第九章日志隔离.html">
            
                    
                    第九章：日志隔离
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="10第十章JMX配置器.html">
            
                <a href="10第十章JMX配置器.html">
            
                    
                    第十章：JMX 配置器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="11第十一章Joran.html">
            
                <a href="11第十一章Joran.html">
            
                    
                    第十一章：Joran
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="12第十二章Groovy配置.html">
            
                <a href="12第十二章Groovy配置.html">
            
                    
                    第十二章：Groovy 配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="13第十三章从log4j迁移.html">
            
                <a href="13第十三章从log4j迁移.html">
            
                    
                    第十三章：从 log4j 迁移
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="14第十四章Receivers.html">
            
                <a href="14第十四章Receivers.html">
            
                    
                    第十四章：Receivers
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="15第十五章使用SSL.html">
            
                <a href="15第十五章使用SSL.html">
            
                    
                    第十五章：使用 SSL
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Introduction</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="logback&#x4E2D;&#x6587;&#x624B;&#x518C;">logback&#x4E2D;&#x6587;&#x624B;&#x518C;</h1>
<blockquote>
<p>&#x7FFB;&#x8BD1;&#x81EA; <a href="https://logback.qos.ch/manual/index.html" target="_blank">The logback manual</a></p>
<h2 id="&#x7B80;&#x4ECB;">&#x7B80;&#x4ECB;</h2>
</blockquote>
<p>Logback &#x7EE7;&#x627F;&#x81EA; log4j&#x3002;</p>
<p>Logback &#x7684;&#x67B6;&#x6784;&#x975E;&#x5E38;&#x7684;&#x901A;&#x7528;&#xFF0C;&#x9002;&#x7528;&#x4E0D;&#x540C;&#x7684;&#x4F7F;&#x7528;&#x573A;&#x666F;&#x3002;Logback &#x88AB;&#x5206;&#x6210;&#x4E09;&#x4E2A;&#x4E0D;&#x540C;&#x7684;&#x6A21;&#x5757;&#xFF1A;logback-core&#xFF0C;logback-classic&#xFF0C;logback-access&#x3002;</p>
<p>logback-core &#x662F;&#x5176;&#x5B83;&#x4E24;&#x4E2A;&#x6A21;&#x5757;&#x7684;&#x57FA;&#x7840;&#x3002;logback-classic &#x6A21;&#x5757;&#x53EF;&#x4EE5;&#x770B;&#x4F5C;&#x662F; log4j &#x7684;&#x4E00;&#x4E2A;&#x4F18;&#x5316;&#x7248;&#x672C;&#xFF0C;&#x5B83;&#x5929;&#x7136;&#x7684;&#x652F;&#x6301; SLF4J&#xFF0C;&#x6240;&#x4EE5;&#x4F60;&#x53EF;&#x4EE5;&#x968F;&#x610F;&#x7684;&#x4ECE;&#x5176;&#x5B83;&#x65E5;&#x5FD7;&#x6846;&#x67B6;&#xFF08;&#x4F8B;&#x5982;&#xFF1A;log4j &#x6216;&#x8005; java.util.logging&#xFF09;&#x5207;&#x56DE;&#x5230; logack&#x3002;</p>
<p>logback-access &#x53EF;&#x4EE5;&#x4E0E; Servlet &#x5BB9;&#x5668;&#x8FDB;&#x884C;&#x6574;&#x5408;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;Tomcat&#x3001;Jetty&#x3002;&#x5B83;&#x63D0;&#x4F9B;&#x4E86; http &#x8BBF;&#x95EE;&#x65E5;&#x5FD7;&#x7684;&#x529F;&#x80FD;&#x3002;</p>
<h2 id="the-logback-manual">The logback manual</h2>
<p>&#x624B;&#x518C;&#x5305;&#x62EC;&#x4E86;&#x6700;&#x65B0;&#x7248;&#x672C;&#x7684; logback&#xFF0C;&#x603B;&#x5171;&#x6709; 150 &#x591A;&#x9875;&#xFF0C;&#x4EE5;&#x53CA;&#x8BB8;&#x591A;&#x5177;&#x4F53;&#x7684;&#x4F8B;&#x5B50;&#xFF0C;&#x4E3B;&#x8981;&#x5305;&#x542B;&#x4EE5;&#x4E0B;&#x57FA;&#x672C;&#x7684;&#x548C;&#x9AD8;&#x7EA7;&#x7684;&#x7279;&#x6027;&#xFF1A;</p>
<ul>
<li>logback &#x7684;&#x6574;&#x4F53;&#x67B6;&#x6784;</li>
<li>&#x8BA8;&#x8BBA; logback &#x6700;&#x597D;&#x7684;&#x5B9E;&#x8DF5;&#x4EE5;&#x53CA;&#x53CD;&#x6A21;&#x5F0F;</li>
<li>logback &#x7684; xml &#x914D;&#x7F6E;&#x65B9;&#x5F0F;</li>
<li>appender</li>
<li>encoder</li>
<li>layout</li>
<li>filter</li>
<li>&#x4E0A;&#x4E0B;&#x6587;&#x8BCA;&#x65AD;</li>
<li>Joran - logback &#x7684;&#x914D;&#x7F6E;&#x7CFB;&#x7EDF;</li>
</ul>
<p>logback &#x624B;&#x518C;&#x5C3D;&#x53EF;&#x80FD;&#x8BE6;&#x7EC6;&#x7684;&#x63CF;&#x8FF0;&#x4E86; logback API&#xFF0C;&#x5305;&#x62EC;&#x5B83;&#x7684;&#x7279;&#x6027;&#x4EE5;&#x53CA;&#x8BBE;&#x8BA1;&#x539F;&#x7406;&#x3002;logback &#x624B;&#x518C;&#x9002;&#x7528;&#x4E8E;&#x90A3;&#x4E9B;&#x4F7F;&#x7528; java &#x4F46;&#x662F;&#x662F; logback &#x65B0;&#x624B;&#x7684;&#x4EBA;&#xFF0C;&#x4E5F;&#x9002;&#x5408;&#x90A3;&#x4E9B;&#x5BF9; logback &#x6709;&#x4E00;&#x5B9A;&#x7ECF;&#x9A8C;&#x7684;&#x4EBA;&#x3002;&#x5728;&#x624B;&#x518C;&#x7684;&#x5E2E;&#x52A9;&#x4E0B;&#xFF0C;&#x65B0;&#x624B;&#x53EF;&#x4EE5;&#x5FEB;&#x901F;&#x4E0A;&#x624B;&#x3002;</p>
<p><a href="01&#x7B2C;&#x4E00;&#x7AE0;logback&#x4ECB;&#x7ECD;.html">&#x7B2C;&#x4E00;&#x7AE0;&#xFF1A;logback &#x4ECB;&#x7ECD;</a><br><a href="02&#x7B2C;&#x4E8C;&#x7AE0;&#x67B6;&#x6784;.html">&#x7B2C;&#x4E8C;&#x7AE0;&#xFF1A;&#x67B6;&#x6784;</a><br><a href="03&#x7B2C;&#x4E09;&#x7AE0;logback&#x7684;&#x914D;&#x7F6E;.html">&#x7B2C;&#x4E09;&#x7AE0;&#xFF1A;logback &#x7684;&#x914D;&#x7F6E;</a><br><a href="04&#x7B2C;&#x56DB;&#x7AE0;Appenders.html">&#x7B2C;&#x56DB;&#x7AE0;&#xFF1A;Appenders</a><br><a href="05&#x7B2C;&#x4E94;&#x7AE0;Encoder.html">&#x7B2C;&#x4E94;&#x7AE0;&#xFF1A;Encoder</a><br><a href="06&#x7B2C;&#x516D;&#x7AE0;Layouts.html">&#x7B2C;&#x516D;&#x7AE0;&#xFF1A;Layouts</a><br><a href="07&#x7B2C;&#x4E03;&#x7AE0;Filters.html">&#x7B2C;&#x4E03;&#x7AE0;&#xFF1A;Filters</a><br><a href="08&#x7B2C;&#x516B;&#x7AE0;MDC.html">&#x7B2C;&#x516B;&#x7AE0;&#xFF1A;MDC</a><br><a href="09&#x7B2C;&#x4E5D;&#x7AE0;&#x65E5;&#x5FD7;&#x9694;&#x79BB;.html">&#x7B2C;&#x4E5D;&#x7AE0;&#xFF1A;&#x65E5;&#x5FD7;&#x9694;&#x79BB;</a><br><a href="10&#x7B2C;&#x5341;&#x7AE0;JMX&#x914D;&#x7F6E;&#x5668;.html">&#x7B2C;&#x5341;&#x7AE0;&#xFF1A;JMX &#x914D;&#x7F6E;&#x5668;</a><br><a href="11&#x7B2C;&#x5341;&#x4E00;&#x7AE0;Joran.html">&#x7B2C;&#x5341;&#x4E00;&#x7AE0;&#xFF1A;Joran</a><br><a href="12&#x7B2C;&#x5341;&#x4E8C;&#x7AE0;Groovy&#x914D;&#x7F6E;.html">&#x7B2C;&#x5341;&#x4E8C;&#x7AE0;&#xFF1A;Groovy &#x914D;&#x7F6E;</a><br><a href="13&#x7B2C;&#x5341;&#x4E09;&#x7AE0;&#x4ECE;log4j&#x8FC1;&#x79FB;.html">&#x7B2C;&#x5341;&#x4E09;&#x7AE0;&#xFF1A;&#x4ECE; log4j &#x8FC1;&#x79FB;</a><br><a href="14&#x7B2C;&#x5341;&#x56DB;&#x7AE0;Receivers.html">&#x7B2C;&#x5341;&#x56DB;&#x7AE0;&#xFF1A;Receivers</a><br><a href="15&#x7B2C;&#x5341;&#x4E94;&#x7AE0;&#x4F7F;&#x7528;SSL.html">&#x7B2C;&#x5341;&#x4E94;&#x7AE0;&#xFF1A;&#x4F7F;&#x7528; SSL</a></p>
<p><img src="images/log.png" alt=""></p>
<blockquote>
<p>&#x56FE;&#x7247;&#x6765;&#x6E90;&#xFF1A;<a href="https://mp.weixin.qq.com/s/XiCky-Z8-n4vqItJVHjDIg" target="_blank">&#x4E00;&#x4E2A;&#x8457;&#x540D;&#x7684;&#x65E5;&#x5FD7;&#x7CFB;&#x7EDF;&#x662F;&#x600E;&#x4E48;&#x8BBE;&#x8BA1;&#x51FA;&#x6765;&#x7684;&#xFF1F;</a>  </p>
</blockquote>
<p>&#x63A8;&#x8350;&#x9605;&#x8BFB;&#xFF1A;</p>
<ol>
<li><a href="https://mp.weixin.qq.com/s/XiCky-Z8-n4vqItJVHjDIg" target="_blank">&#x4E00;&#x4E2A;&#x8457;&#x540D;&#x7684;&#x65E5;&#x5FD7;&#x7CFB;&#x7EDF;&#x662F;&#x600E;&#x4E48;&#x8BBE;&#x8BA1;&#x51FA;&#x6765;&#x7684;&#xFF1F;</a></li>
<li><a href="https://mp.weixin.qq.com/s/8VvBdRH_Yc-Dt4HFGbC5rg" target="_blank">&#x67B6;&#x6784;&#x5E08;&#x5FC5;&#x5907;&#xFF0C;&#x5E26;&#x4F60;&#x5F04;&#x6E05;&#x6DF7;&#x4E71;&#x7684;JAVA&#x65E5;&#x5FD7;&#x4F53;&#x7CFB;&#xFF01;</a></li>
</ol>



                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="01第一章logback介绍.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 第一章：logback 介绍">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"第一章：logback 介绍","level":"1.2","depth":1,"path":"01第一章logback介绍.md","ref":"01第一章logback介绍.md","articles":[]},"dir":"ltr"},"config":{"plugins":["add-js-css","myseo"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"add-js-css":{"js":["./lib/site.js"]},"myseo":{"description":"logback中文网包含了logback中文文档，最新资讯，应用案例等。logback 继承自 log4j，它建立在有十年工业经验的日志系统之上。它比其它所有的日志系统更快并且更小，包含了许多独特并且有用的特性。","keywords":"logback中文文档, logback api文档, logback log4j,springboot logback,logback日志类型","titlePrefix":"logback中文网|"},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","keywords":"","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"logback中文手册","gitbook":"*","description":""},"file":{"path":"README.md","mtime":"2019-02-23T06:51:43.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-02-24T03:19:05.191Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-add-js-css/fda70cfc36440304bb976a11f47eb151-site.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

